package com.exadel;


import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJIDEA.
 * User: alec
 * Date: 15.01.13
 * Time: 10:12
 * To change this template use File | Settings | File Templates .
 */

public class FakeConnect  implements Connection {

    private Document htmlDoc;

    @Override
    public void connect(String path){
        try{
            htmlDoc = new Document("");
            File f = new File(path);
            htmlDoc = Jsoup.parse(f,null);
        }
        catch(IOException exc){

        }
    }
    @Override
    public Document getDocument() {
        return htmlDoc;
    }
}
